package com.fowo.api.model.fba.shipmenttrack;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 货件跟踪号 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class FbaShipmenttrackImportPo {

  /** parentId */
  @ExcelProperty("parentId")
  @Size(max = 500, message = "parentId长度不能超过500")
  private String parentIdShipmentName;

  @ExcelIgnore
  @Schema(title = "parentId")
  private String parentId;

  /** 箱号 */
  @ExcelProperty("箱号")
  @IntegerString(message = "箱号数值格式不正确", label = "箱号")
  private String boxno;

  /** 跟踪号 */
  @ExcelProperty("跟踪号")
  @Size(max = 100, message = "跟踪号长度不能超过100")
  private String trackingnumber;
}
